package org.github.manx98.jlibhac.fssystem;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 16:40
 */
public enum NcaSectionType {
    Code,
    Data,
    Logo;

    public static NcaSectionType valueOf(byte value) {
        for (NcaSectionType type : NcaSectionType.values()) {
            if (type.ordinal() == value) return type;
        }
        throw new IllegalArgumentException("Invalid value for section type " + value);
    }
}
